/**
 *  Shopro全局配置文件
 *  @version 1.1.2
 */

// 不同环境访问不同的路径
import store from '@/common/store/index'
// #ifdef H5
let protocol = window.location.protocol;
// #endif

const ENV_BASE_URL = {
	// development: 'http://three.qianjiwl.xyz', //开发环境 	pt.duoduoduo.work
	// production: 'http://three.qianjiwl.xyz', //生产环境
	development: 'http://pintuan.duoduoduo.work', //开发环境 	http://jiazheng2.qianjiwl.xyz
	production: 'http://pintuan.duoduoduo.work', //生产环境 http://pintuan.duoduoduo.work
	
}
const ENV_API_URL = {
	development: `${ENV_BASE_URL.development}/addons/shopro/`, //开发环境
	production: `${ENV_BASE_URL.production}/addons/shopro/`, //生产环境
}

export const BASE_URL = ENV_BASE_URL[process.env.NODE_ENV || 'development']; //后台根域名
export const API_URL = ENV_API_URL[process.env.NODE_ENV || 'development']; //后台接口域名
export const HAS_LIVE = false; //后台是否开通直播权限,根据情况在manifest.json中，开启注释相应组件的引入。
export const IMG_URL = 'http://ygypadmin.duoduoduo.work';